package com.cmwa.scbp.business.postMaintenance.schedule;

import javax.annotation.Resource;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.stereotype.Service;

import com.cmwa.scbp.business.postMaintenance.service.PostPersonnelChangeService;

/**
 * 岗位人员变更定时任务
 * @author cmfchina
 *
 */
@Service
public class PostPersonnelChangeSchedule {
	private static final Log log = LogFactory.getLog(PostPersonnelChangeSchedule.class);
	
	@Resource
	private PostPersonnelChangeService postPersonnelChangeService;
	
	public void postPersonnelChange() throws Exception {
		log.error("执行岗位人员变更定时任务");
		postPersonnelChangeService.updatePostPersonnelAndIsUse(null, "schedule");
	}
}
